<template>
	{{ data.name }} : {{ data.value }} : {{ data.type }}
	<Button type="defualt" @click="change(data)">操作改变</Button>
</template>

<script>
import { deepClone } from '@/utils/common';
export default {
	props: ['modelValue', 'item'],
	data() {
		return {
			data: deepClone(this.item)
		}
	},
	methods: {
		change(data) {
			data.value = 999
			this.$emit('update:modelValue', data.value);
		}
	},
	mounted() {

	}
}
</script>
<style lang="scss" scoped></style>